
CREATE TABLE [dbo].[yxs_storemessage](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[senderid] [int] NOT NULL,
	[sendertime] [datetime] NOT NULL,
	[message] [ntext] NULL,
	[messagetype] [int] NOT NULL,
	[storecenterid] [int] NULL,
	[messagetitle] [nvarchar](100) NOT NULL,
	[accessory1] [nvarchar](255) NULL,
	[accessory2] [nvarchar](255) NULL,
	[messagecategory] [int] NOT NULL,
 CONSTRAINT [PK_yxs_storemessage] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'1表示公告，2表示资料' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'yxs_storemessage', @level2type=N'COLUMN',@level2name=N'messagecategory'
GO


